package com.glory.dmegcpda.adapter

import android.net.Uri
import android.widget.ImageView
import androidx.databinding.BindingAdapter
import com.bumptech.glide.Glide
import java.io.File


object ImageAdapter {

    @BindingAdapter(value = ["imageFile"], requireAll = false)
    @JvmStatic
    fun setBitmap(image: ImageView, path: String) {
//        image.setImageURI(Uri.fromFile(File(path)))
        Glide.with(image.context).load(path).into(image)
    }

}